/**
 * 含子集的父级页面不要添加components
 * 详情等跳转路由页面，添加hidden:true 
 ** 且 将上级跳转地址和页面名称写入path和name中，以/分隔，以便header头部解析
 * 
 */

const allRoute = [
  {
    path: '/newBox',
    name: "测试页面",
    component: () => import('@/views/english/English.vue'),
    hidden: false,
  },
  {
    path: '/newBox/third',
    name: "测试页面/测试详情页面",
    component: () => import('@/views/third/Third.vue'),
    hidden: true,
  },
  {
    path: '/English',
    name: "翻译页面",
    children: [
      {
        path: '/English/EnglishChild',
        name: "翻译子集",
        component: () => import('@/views/third/Third.vue'),
        hidden: false,
      },
    ]
  },
  {
    path: '/first',
    name: "1级",
    children: [
      {
        path: '/first/second',
        name: "2级",
        children: [
          {
            path: '/first/second/third',
            name: "3级",
            component: () => import('@/views/third/Third.vue'),
          },
        ]
      },
    ]
  },
  {
    path: '/cropper',
    name: "截图页面",
    component: () => import('@/views/cropper/cropper.vue'),
  },
  {
    path: '/limit',
    name: "权限管理",
    children: [
      {
        path: '/limit/user',
        name: "用户管理",
        component: () => import('@/views/Limit/User/User.vue'),
      },
      {
        path: '/limit/role',
        name: "角色管理",
        component: () => import('@/views/Limit/Role/Role.vue'),
      },
      {
        path: '/limit/menu',
        name: "菜单管理",
        component: () => import('@/views/Limit/Menu/Menu.vue'),
      },
    ]
  },

]

export default allRoute